﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LiveSdkSignInSample
{
    public partial class SignInWindow : Form
    {
        public SignInWindow()
        {
            InitializeComponent();
        }

        private void SignInWindow_Load(object sender, EventArgs e)
        {
            webBrowser1.Navigated += new WebBrowserNavigatedEventHandler(webBrowser1_Navigated);
            webBrowser1.Navigate("https://oauth.live.com/authorize?"
                + "client_id=000000004806CC9B&"
                + "response_type=code&"
                + "scope=wl.signin,wl.basic&"
                + "redirect_uri=https://oauth.live.com/desktop");
        }

        void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
        {
            
        }
    }
}
